package com.aaa.hospital.nurse.service.Impl;

import com.aaa.hospital.nurse.mapper.WardregistrationDao;
import com.aaa.hospital.nurse.pojo.Wardregistration;
import com.aaa.hospital.nurse.service.WardregistrationDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WardregistrationDaoServiceImpl implements WardregistrationDaoService {
  @Autowired
private WardregistrationDao wardregistrationDao;


    @Override
    public boolean wardregistinsert(Wardregistration wardregistration) {
        return wardregistrationDao.wardregistinsert(wardregistration);
    }

    @Override
    public void update(Integer warid) {
        wardregistrationDao.update(warid);
    }

    @Override
    public List<Wardregistration> queryById(int id) {
        return wardregistrationDao.queryById(id);
    }
}
